<template>
  <div>
    <h1>详情{{ $route.params.id }}</h1>

    <video
      class="video"
      controls
      :poster="info?.pic"
      src="https://video.pearvideo.com/mp4/third/20230706/cont-1784445-12033417-151259-hd.mp4"
    ></video>
  </div>
</template>

<script lang="ts" setup>
const {
  params: { id },
} = useRoute();

const { data: info } = await useFetch(`/api/hot/${id}`);
console.log("info", info);

useSeoMeta({
  title: info.value?.title,
});
</script>

<style lang="scss" scoped>
.video {
  display: block;
  width: 100%;
}
</style>
